<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
		
	<table style="width:100%;border:0px;">
		<tr>
			<td style="width: 60%; text-align: left; margin-top: 10px; font-size: 15px; font-weight: bold;">
				<h:outputText value="Total" />
			</td>
			<td style="width:20%; text-align: right; margin-top: 10px; font-size: 15px;">
				<h:outputText value="R$ " />
				<h:outputText value="#{fluxoCaixaManager.totalEntrada}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
			</td>
			<td style="color: red; width:20%; float:left; text-align: right; margin-top: 10px; font-size: 15px;">
				<h:outputText value="R$ " />
				<h:outputText value="#{fluxoCaixaManager.totalSaida}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
			</td>
		</tr>
	</table>
	<table style="width:100%;border:0px;">
		<tr>
			<td colspan="2" rowspan="2" style="font-weight: bold; width: 60%; text-align: left; margin-top: 10px; font-size: 25px;">
				<h:outputText value="Total Geral" />
			</td>
			<td style="width:20%; float:left; text-align: right; margin-top: 10px; font-size: 15px; font-weight: bold;">
				<h:outputText value="Saldo Anterior" />
			</td>
			<td style="width:20%; float:left; text-align: right; margin-top: 10px; font-size: 15px; font-weight: bold;">
				<h:outputText value="Saldo Atual" /><br />
				<h:outputText value="(S.Ant + Ent - Sai)" style="font-size:10px;"/>
			</td>
		</tr>
		<tr>
			<td style="width:20%; float:left; text-align: right; margin-top: 10px; font-size: 15px;">
				<h:outputText value="R$ " style="color:red" rendered="#{fluxoCaixaManager.caixaAnterior.saldoAtual.doubleValue() lt 0}"/>
				<h:outputText value="R$ " rendered="#{fluxoCaixaManager.caixaAnterior.saldoAtual.doubleValue() ge 0}"/>

				<h:outputText value="#{fluxoCaixaManager.caixaAnterior.saldoAtual}" style="color:red; text-align: right; margin-top: 10px; font-size: 15px;" rendered="#{fluxoCaixaManager.caixaAnterior.saldoAtual.doubleValue() lt 0}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
				<h:outputText value="#{fluxoCaixaManager.caixaAnterior.saldoAtual}" style="text-align: right; margin-top: 10px; font-size: 15px;" rendered="#{fluxoCaixaManager.caixaAnterior.saldoAtual.doubleValue() ge 0}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
			</td>
			<td style="width:20%; float:left; text-align: right; margin-top: 10px; font-size: 15px;">
				<h:outputText value="R$ " style="color:red" rendered="#{fluxoCaixaManager.saldoAtual.doubleValue() lt 0}"/>
				<h:outputText value="R$ " rendered="#{fluxoCaixaManager.saldoAtual.doubleValue() ge 0}"/>

				<h:outputText value="#{fluxoCaixaManager.saldoAtual}" style="color:red; text-align: right; margin-top: 10px; font-size: 15px;" rendered="#{fluxoCaixaManager.saldoAtual.doubleValue() lt 0}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
				<h:outputText value="#{fluxoCaixaManager.saldoAtual}" style="text-align: right; margin-top: 10px; font-size: 15px;" rendered="#{fluxoCaixaManager.saldoAtual.doubleValue() ge 0}">
					<f:convertNumber pattern="#,##0.00;(#,##0.00)" />
				</h:outputText>
			</td>
		</tr>
	
	</table>

</html>